package com.remote.ems.api;


import com.alibaba.fastjson.JSONObject;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xiongzhiwen
 * @Description // 邮政Feign接口
 * @Date 2024/3/15 15:20
 * @Param
 * @return
 **/
@RestController
@FeignClient(name = "EmsFeign", url = "${ems.url:#{null}}")
public interface Ems_Feign {


    @RequestMapping(value = "", method = RequestMethod.POST)
    @Headers(value = "Content-Type: application/x-www-form-urlencoded")
    JSONObject emsTraceDetail(@RequestParam("senderNo") String senderNo, @RequestParam("apiCode") String apiCode,
                          @RequestParam("authorization") String authorization,
                          @RequestParam("timeStamp") String timeStamp,
                          @RequestParam("logitcsInterface") String logitcsInterface);
}
